<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:p='http://primefaces.org/ui'
      xmlns:h='http://java.sun.com/jsf/html'
      xmlns:ui='http://java.sun.com/jsf/facelets'
      xmlns:cc='http://java.sun.com/jsf/composite' style='color: inherit'>

<cc:interface>

<cc:attribute name='id'/>

<cc:attribute name='bean'/>

<cc:attribute name='title'/>

<cc:attribute name='columns'/>

<cc:attribute name='cellpadding'/>

<cc:attribute name='style'/>

</cc:interface>


<cc:implementation>

<h:panelGrid columns='1' cellpadding='0' cellspacing='0' rendered="#{cc.attrs.id == 'ps'? !cc.attrs.bean.isRead : 'true'}" style="#{cc.attrs.style} #{cc.attrs.id == 'ps'? '; margin-right: 7px; float: right' : ''}">

  <p:toolbar styleClass='form-Header' style='width:100%'>

  <p:toolbarGroup align='left'><h:outputText value='#{cc.attrs.title}'/></p:toolbarGroup>

  </p:toolbar>


  <p:panel styleClass='form-Content' style="width:100%; border-top:none; background: #{cc.attrs.id == 'ps'? 'transparent' : '#fff'}">

  <h:panelGrid columns="#{cc.attrs.columns != null? cc.attrs.columns : '2'}" cellpadding="#{cc.attrs.cellpadding != null? cc.attrs.cellpadding : '0'}" cellspacing='0'>

  <ui:param name='bean' value='#{cc.attrs.bean}'/>

  <cc:insertChildren/>

  </h:panelGrid>

  </p:panel>

</h:panelGrid>

</cc:implementation>

</html>